package model;

import web.model.Bean;

/**
 * Artist bean
 * 
 * @author orlin
 */
public class ArtistBean extends Bean {

	private String name;

	public ArtistBean() {
		super();
	}

	public ArtistBean(String name) {
		super();
		this.name = name;
	}

	public ArtistBean(Artist artist) {
		super();
		this.name = artist.getName();
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		StringBuffer line = new StringBuffer();
		line.append("Artist [id:");
		line.append(getId());
		line.append(", name:");
		line.append(name);
		line.append("]");
		return line.toString();
	}
}
